package com.task.src.dto;

import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.beans.factory.annotation.Configurable;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;


public class Task implements Serializable {

    private int id;//主键

    private String task_name;//任务名

    private String task_type;//任务类型

    private String task_content;//任务内容

    private BigDecimal task_bounty;//任务金额

    private String payroll_method;//结算方式

    private String contact;//联系方式

    private String status;

    @Override
    public String toString() {
        return "Task{" +
                "id=" + id +
                ", task_name='" + task_name + '\'' +
                ", task_type='" + task_type + '\'' +
                ", task_content='" + task_content + '\'' +
                ", task_bounty=" + task_bounty +
                ", payroll_method='" + payroll_method + '\'' +
                ", contact='" + contact + '\'' +
                ", status='" + status + '\'' +
                '}';
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Task(int id, String task_name, String task_type, String task_content, BigDecimal task_bounty, String payroll_method, String contact, String status) {
        this.id = id;
        this.task_name = task_name;
        this.task_type = task_type;
        this.task_content = task_content;
        this.task_bounty = task_bounty;
        this.payroll_method = payroll_method;
        this.contact = contact;
        this.status = status;
    }

    public Task() {
    }

    public Task(String task_name, String task_type, String task_content, BigDecimal task_bounty, String payroll_method, String contact) {
        this.task_name = task_name;
        this.task_type = task_type;
        this.task_content = task_content;
        this.task_bounty = task_bounty;
        this.payroll_method = payroll_method;
        this.contact = contact;
    }

    public Task(int id, String task_name, String task_type, String task_content, BigDecimal task_bounty, String payroll_method, String contact) {
        this.id = id;
        this.task_name = task_name;
        this.task_type = task_type;
        this.task_content = task_content;
        this.task_bounty = task_bounty;
        this.payroll_method = payroll_method;
        this.contact = contact;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTask_name() {
        return task_name;
    }

    public void setTask_name(String task_name) {
        this.task_name = task_name;
    }

    public String getTask_type() {
        return task_type;
    }

    public void setTask_type(String task_type) {
        this.task_type = task_type;
    }

    public String getTask_content() {
        return task_content;
    }

    public void setTask_content(String task_content) {
        this.task_content = task_content;
    }

    public BigDecimal getTask_bounty() {
        return task_bounty;
    }

    public void setTask_bounty(BigDecimal task_bounty) {
        this.task_bounty = task_bounty;
    }

    public String getPayroll_method() {
        return payroll_method;
    }

    public void setPayroll_method(String payroll_method) {
        this.payroll_method = payroll_method;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

}
